$(document).ready(function(){
	$("div#content").css("display", "none");
	$("div#content").fadeIn(2000);
});

var theApp = angular.module("theApp",[]);

theApp.config(function($routeProvider){
	$routeProvider.when("/about",{
		controller:"AboutController",
		templateUrl:"../partials/about.html"
	}).
	when("/gallery", {
		controller:"GalleryController",
		templateUrl:"../partials/gallery.html"
	}).
	when("/gallery/:categoryId", {
		controller:"CategoryController",
		templateUrl:"..partials/gallery.html"
	}).
	when("/detail/:productId", {
		controller:"DetailController",
		templateUrl:"../partials/product.html"
	}).
	when("/", {
		controller:"HomeController",
		templateUrl:"../partials/home.html"
	}).
	otherwise({
		redirect_to:"/about"
	});
});

function onTumblr(data){
	console.log(data);
	// alert("On Tumblr");
}

function toCategory(categoryId){
	//1. if current-path == gallery ==>
	//2. switch between categories

}

